package de.micromata.cal;

import net.fortuna.ical4j.model.component.VEvent;

public class SortedVEvent implements Comparable<SortedVEvent> {
	
	private VEvent event = null;
	
	public SortedVEvent(VEvent event) {
		this.event = event;
	}
	
	public VEvent getEvent() {
		return event;
	}

	public int compareTo(SortedVEvent e) {
		return (int) (this.event.getStartDate().getDate().getTime() - e.getEvent().getStartDate().getDate().getTime());
	}

}
